import axios from '../utils/request'
// 获取所有的课程
export const subject = () => axios.get('/exam/subject')
// 获取所有的考试类型
export const examType = () => axios.get('/exam/examType')

//获取试卷列表接口
export const fetchExam = (params) => axios.get('/exam/exam',params)
//创建试卷接口
export const createExam = (params) => axios.post('/exam/exam', params)
//更新试卷接口
export const updateExam = (params) => axios.put('/exam/exam/w5tcy-g2dts', params)
//获取试卷详情（教师端）接口
export const fetchDetail = () => axios.get('/exam/exam/w5tcy-g2dts')
//删除试卷接口
export const deleteExam = (params) => axios.DELETE('/exam/exam/w5tcy-g2dts', params)